cmake_minimum_required(VERSION 2.8.3)
project(unitree_legged_sdk)

include_directories(include)

link_directories(lib)

add_compile_options(-std=c++11)

set(EXTRA_LIBS -pthread libunitree_legged_sdk_amd64.so lcm)

set(CMAKE_CXX_FLAGS "-O3")

# add_executable(example_walk examples/example_walk.cpp)
# target_link_libraries(example_walk ${EXTRA_LIBS})

add_subdirectory(third_party/pybind11)

pybind11_add_module(robot_interface_high_level src/python_interface_high_cmd.cpp)
target_link_libraries(robot_interface_high_level ${EXTRA_LIBS})

pybind11_add_module(robot_interface_low_level src/python_interface_low_cmd.cpp)
target_link_libraries(robot_interface_low_level ${EXTRA_LIBS})
